﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RedisDotNet.Tests
{
    [TestClass]
    public abstract class TestBase
    {
        protected const string Key = "TESTKEY";
        protected const string Key2 = "TESTKEY2";

        protected RedisClient redisClient;
        
        [TestInitialize]
        public void SetUp()
        {
            redisClient = new RedisClient();
            redisClient.FlushAll();
        }
        
        [TestCleanup]
        public void TearDown()
        {
            redisClient.FlushAll();
            redisClient.Dispose();
        }
    }
}
